# Uncomment the following line for Solaris
# C_LINK = -lsocket -lnsl -lm

# Uncomment this for SCO.  (Note, this has only been reported to work with
# Revision 3.2.4 with the "SCO TCP/IP Development System" package installed.
# Please let me know if you have any other SCO success stories.
# C_LINK = -lsocket

C_FLAGS = -I. -I../../../include -L../../../lib

TLIB= -ltlib
CGI= ../../../lib/cgihtml.a

BINARYS = t_tlib_html t_tlib_html_ex

# Comment the following line if you are not using the gnu c compiler
C_ARGS = -Wall

# You might have to change this if your c compiler is not cc
CC = gcc
RANLIB = ranlib

.o:
	$(CC) -c $(C_FLAGS) $*

all: $(BINARYS)

t_tlib_html: t_tlib_html.c
	$(CC) -o  t_tlib_html t_tlib_html.c  $(TLIB) $(CGI) $(C_FLAGS) $(C_LINK)
	strip t_tlib_html
	cp t_tlib_html /usr/local/tips_stcall/cgi-bin/

t_tlib_html_ex: t_tlib_html_ex.c
	$(CC) -o  t_tlib_html_ex t_tlib_html_ex.c  $(TLIB) $(CGI) $(C_FLAGS) $(C_LINK)

clean: 
	rm $(BINARYS)
